var myOrder = {
    events: {
        // '#teacherManage #searchBtn click': 'searchBaby',
    },
    init: function () {
        var _this = this;
        Util.event.call(_this, _this.events);
        _this.initTable();
    },
    initTable:function () {
        var _this = this;
        var zTableSetting = {
            async : true,
            requestParam : {
                enable : true,
                url : interfaceURL.getBookList()
            },
            head:[
                {key:"name",name:"商户信息"},{key:"phone",name:"手机号"},
                {key:"number",name:"预约人数"},{key:"time",name:"预约时间"},
                {key:"recommend_people",name:"推荐人"},{key:"create_time",name:"创建时间"}
            ],
            callback : {
                asyncSuccess : function (msg) {
                    if(msg.code == "1"){
                        _this.recordList = msg.data.list;
                        $(".my-order-title-text .order-number").html(msg.data.total);
                        return {
                            zColumns : msg.data.list,
                            pageInfo : {
                                pageSize:10,
                                pageNum:msg.data.current_page,
                                totalPage:msg.data.total_page,
                                totalRecords:msg.data.total
                            }
                        }
                    }
                }
            }
        };
        $.fn.zTable.init($(".my-order-list"), zTableSetting);
    }
}